package org.freespace.model;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 压测机器表
 * </p>
 *
 * @author liuqi
 * @since 2023-05-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class JmxArguments extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer jmxId;

    private Integer threadgroupId;

    /**
     * 名称
     */
    private String name;

    /**
     * 自定义变量的comments
     */
    private String comments;

    private String arguments;

    /**
     * 线程组状态状态：0:停用1:启用
     */
    private Boolean status;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private String lastUpdateBy;

    /**
     * 最后更新时间
     */
    private LocalDateTime lastUpdateTime;

    @TableField(exist = false)
    private JSONArray argumentsArray;

    @TableField(exist = false)
    private String threadGroupName;


}
